package cn.zgliang.blog.service;

import cn.zgliang.blog.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/3/17 17:04
 * 描述：
 */
public interface TypeService {
    Type saveType(Type type);
    Type getType(Long id);
    Page<Type> listType(Pageable pageable);
    List<Type> listType();
    Type updateType(Long id,Type type);
    void deleteType(Long id);
    Type getTypeByName(String name);

    List<Type> listTypeTop(Integer size);
}
